﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestTemplate.aspx.cs" Inherits="Pages_TestTemplate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
    <script src="../Scripts/jquery-jtemplates.js" type="text/javascript"></script>
    <script language="javascript">
        $(document).ready(function () {
            BindArticles(2, 'dvASPNET');
        });

        function BindArticles(Category, Container) {
            $.getJSON('../services/GetProducts.ashx?Module=' + Category, function (employees) {
                $('#' + Container).setTemplateURL('../Templates/FeaturedProduct.htm');
                $('#' + Container).processTemplate(employees);
            });
        }
           
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dvASPNET" class="Content">
    </div>
    </form>
</body>
</html>
